package com.drodds.game;

import java.util.ArrayList;
import android.content.Context;
import android.util.DisplayMetrics;
import android.content.res.Configuration;
import android.graphics.Rect;
import android.view.View;

public class UIStatusPane {

	public static final int LANDSCAPE = Configuration.ORIENTATION_LANDSCAPE;
	public static final int PORTRAIT = Configuration.ORIENTATION_PORTRAIT;
	public int orientation;
	
	private Context context;
	private Rect paneBounds;
	
	public void init(Context ctxt) {
		context = ctxt;
		paneBounds = new Rect();
		updatePos();
	}
	
	public Rect getBounds() {
		return paneBounds;
	}
	
	public void setBounds(Rect r) {
		paneBounds = r;
		updatePos();
	}
	
	public void updatePos() {
/*		orientation = context.getResources().getConfiguration().orientation;
		
		DisplayMetrics dims = context.getResources().getDisplayMetrics();
		paneBounds.left = 0;
		paneBounds.bottom = dims.heightPixels;
		
		if (orientation == PORTRAIT) {
			paneBounds.top = Math.round(dims.heightPixels * absPortraitY);
			paneBounds.right = dims.widthPixels;
		}
		else {
			paneBounds.top = 0;
			paneBounds.right = Math.round(dims.widthPixels * absLandscapeX);
		}
*/
	}

}